- 
		Home
	
 
	- 
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)
 
- 
3.2.1
 
- 
Code
 
- 
Classes
 
-  API_Controller 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											38 | 
										
																			
											| Dependencies | 
											1 | 
										
																			
											| Dependents | 
											0 | 
										
																	
							 
													
								
																			
											| Total lines | 
											249 | 
										
																			
											| Lines of code | 
											148 | 
										
																			
											| Logical lines of code | 
											66 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											83 | 
										
																			
											| Methods | 
											12 | 
										
																			
											| Properties | 
											1 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 12
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| prepare_item_for_database() | 
									A  | 
																	47 | 
													15 | 
													31 | 
							
					
				| get_items() | 
									S  | 
																	54 | 
													6 | 
													21 | 
							
					
				| delete_item() | 
									S  | 
																	60 | 
													4 | 
													11 | 
							
					
				| get_collection_params() | 
									S  | 
																	48 | 
													1 | 
													40 | 
							
					
				| get_item() | 
									S  | 
																	64 | 
													3 | 
													8 | 
							
					
				| create_item() | 
									S  | 
																	61 | 
													2 | 
													12 | 
							
					
				| prepare_item_for_response() | 
									S  | 
																	67 | 
													2 | 
													7 | 
							
					
				| get_item_objects() | 
									S  | 
																	76 | 
													1 | 
													3 | 
							
					
				| get_item_object() | 
									S  | 
																	76 | 
													1 | 
													3 | 
							
					
				| get_formatted_item_data() | 
									S  | 
																	76 | 
													1 | 
													3 | 
							
					
				| update_item() | 
									S  | 
																	72 | 
													1 | 
													5 | 
							
					
				| may_be_create() | 
									S  | 
																	75 | 
													1 | 
													4 |